<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        div {
            width: 200px;
            height: 200px;
            margin: 100px;
            background-color: red;
        }
    </style>
    <script src="./jquery-1.11.1.js"></script>
    <script src="./jquery.color.js"></script>
</head>

<body>

    <button>改变背景色</button>
    <div></div>
    <script>
        $('button').click(function () {
            $('div').animate({
                width: 600,
                backgroundColor: 'black',
            }, 2000)
        })
    </script>
</body>

</html>